package controller;

import facade.CompetenceFacade;
import facade.UserFacade;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import model.Competence;
import model.User;
import utils.JSFUtils;

/**
 *
 * @author ZimmE
 */
@Stateless
@LocalBean
public class JobApplicationController {

    @EJB
    private CompetenceFacade competenceFacade;
    @EJB
    private UserFacade userFacade;

    public List<Competence> getCompetenceList() {
        return competenceFacade.findAll();
    }

    public User getCurrentUser() {
        return userFacade.findByUsername(JSFUtils.getCurrentUsername());
    }
}
